package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SBufferMsg extends Object implements IMessageBase
    {
        public var updateType:int;
        public var buffers:Array;
        public const _type:int = 12010;
        public static var _regist:SBufferMsg = new SBufferMsg(true);

        public function SBufferMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SBufferMsg();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.updateType);
            SeqBufferHelper.write(param1, this.buffers);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.updateType = param1.readInt();
            this.buffers = SeqBufferHelper.read(param1);
            
        }

    }
}
